package com.eian.boot.common.enums;

import com.eian.boot.common.core.enums.IBaseEnum;
import lombok.Getter;

/**
 * 登录状态枚举
 *
 * @author alex.meng
 * @createTime 2025-10-15
 */
@Getter
public enum LoginStatusEnum implements IBaseEnum<Integer> {

    /**
     * 失败
     */
    FAIL(0, "失败", "登录失败"),

    /**
     * 成功
     */
    SUCCESS(1, "成功", "登录成功");

    private final Integer value;
    private final String label;
    private final String description;

    LoginStatusEnum(Integer value, String label, String description) {
        this.value = value;
        this.label = label;
        this.description = description;
    }

    public static LoginStatusEnum getByValue(Integer value) {
        return IBaseEnum.getByValue(LoginStatusEnum.class, value);
    }

    public static LoginStatusEnum getByLabel(String label) {
        return IBaseEnum.getByLabel(LoginStatusEnum.class, label);
    }
}


